package com.woniu.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.entity.HouseHoldinfos;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Gapper
 * @since 2021-03-29
 */
public interface HouseHoldinfosMapper extends BaseMapper<HouseHoldinfos> {

    /**
     查询
     */
    List<HouseHoldinfos> find(@Param(Constants.WRAPPER) Wrapper<HouseHoldinfos> wrapper);

    /**
     自定义分页查询
     */
    @Select("select * from house_holdinfos ${ew.customSqlSegment}")
    IPage<HouseHoldinfos> customPageQuery(Page<HouseHoldinfos> page, @Param(Constants.WRAPPER) Wrapper<HouseHoldinfos> wrapper);

}
